<!DOCTYPE html>
<html>
<head>
	<title>login</title>
</head>
<body>
	app7120-sanctum-spa1-client::login


	<script type="text/javascript" src="./axios-0.21.1.js"></script>
	<script type="text/javascript">
		const service = axios.create({
			baseURL: 'http://sanctumspa1.laravel7120.cm/api/', // url = base url + request url
			withCredentials: true, // send cookies when cross-domain requests
			timeout: 5000 // request timeout
		});
		service.post('login', {
			'email': 'amen@qq.com',
			// 'password': '1qaz3edc'
		})
			.then(function (data) {
				console.log(arguments);
			})
			.catch(function () {
				console.log(arguments);
			});
	</script>

</body>
</html>
